package com.taoist_awei.blog.core;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.UUID;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LinkEntity {
    private String linkId;
    private String linkName;
    private String link;

    public LinkEntity(String linkName, String link) {
        this.linkId = UUID.randomUUID().toString();
        this.linkName = linkName;
        this.link = link;
    }
}
